package com.ruoyi.web.utils;

import java.util.Arrays;

public enum EmailTemplateEnum {

	/**
	 * 新员工花名册录入通知
	 */
	NEW_USER_COMPLETE_INFORMATION_ENTRY(
			EmailTemplate.NOTICE.NEW_USER_COMPLETE_INFORMATION_ENTRY,
			"新员工花名册录入完成通知",
			"yangtaoer@126.com",
			"heshan@ruinianxin.com"
	),
	/**
	 * 明日短信下发计划
	 */
	SMS_SEND_PLAN(
			EmailTemplate.NOTICE.SMS_SEND_PLAN,
			"明日短信下发计划",
			"yangtaoer@126.com",
			"heshan@ruinianxin.com"
	),
	/**
	 * 全员短信下发
	 */
	SMS_SEND_BATCH(
			EmailTemplate.NOTICE.SMS_SEND_BATCH,
			"全员短信下发",
			"yangtaoer@126.com",
			"heshan@ruinianxin.com"
	)
	;

	/**
	 * 模板
	 */
	private String template;

	/**
	 * 主题
	 */
	private String sub;

	/**
	 * 发送给谁
	 */
	private String[] tos;

	EmailTemplateEnum(String template,String sub,String ... tos){
		this.template = template;
		this.sub = sub;
		this.tos = tos;
	}


	public String getTemplate(){
		return this.template;
	}

	public String getSub(){
		return this.sub;
	}

	public String[] getTos(){
		return this.tos;
	}

	@Override
	public String toString(){
		return String.format("主题:%s 发送给:%s",this.sub, Arrays.toString(this.tos));
	}


}
